import 'package:boss/provider/offers_provider.dart';
import 'package:boss/textStyle/text_style.dart';
import 'package:boss/ui/page/offersManagement/page/offersDetail/provider/offers_detail_provider.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class OffersDetailHeader extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      height: 164.w,
      padding: EdgeInsets.symmetric(
        horizontal: 30.w,
      ),
      child: Consumer<OffersDetailProvider>(
        builder: (context, offerDetailProvider, _) {
          return Column(
            mainAxisAlignment: MainAxisAlignment.center,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              Text(
                offerDetailProvider.data.activityName,
                style: TextStyleConstant().normal_1_36,
              ),
              Container(
                margin: EdgeInsets.only(
                  top: 16.w,
                ),
                child: Text(
                  OffersType.int2String[offerDetailProvider.type],
                  style: TextStyleConstant().normal_3_28,
                ),
              ),
            ],
          );
        },
      ),
    );
  }
}
